//
//  UIColor+GColor.h
//  KingDraw
//
//  Created by Mask on 2018/5/16.
//  Copyright © 2018年 Mask. All rights reserved.
//

#import <UIKit/UIKit.h>

#define colorWithHex(hexColor) ([UIColor colorFromHex:hexColor])

@interface UIColor (GColor)

/**
 十六进制颜色转为uicolor
 
 @param hexString @“#ffffffff”
 @return UIColor
 */
+ (UIColor *)colorFromHex:(NSString *)hexString;

/**
 十六进制颜色转为uicolor
 
 @param hexString @“ffffff”
 @return UIColor
 */
+ (UIColor *)colorFromHex:(NSString *)hexString alpha:(float)alpha;

@end
